package com.uyayo.framework.limiter.exception;

/**
 *
 * uyayo-framework-limiter
 * @author hfj
 * @date 2019/5/23
 */
public class RequestLimiterException extends IllegalRequestException {


    private static final long serialVersionUID = -6880095408451892791L;

    private Integer code;

    private long expire;

    public RequestLimiterException() {
        super();
    }

    public RequestLimiterException(String message) {
        super(message);
    }

    public RequestLimiterException(String message, long expire) {
        super(message);
        this.expire = expire;
    }
    public RequestLimiterException(Integer code, String message, long expire) {
        super(message);
        this.code = code;
        this.expire = expire;
    }
    public RequestLimiterException(String message, Throwable cause) {
        super(message, cause);
    }

    public RequestLimiterException(Throwable cause) {
        super(cause);
    }

    protected RequestLimiterException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public long getExpire() {
        return expire;
    }

    public void setExpire(long expire) {
        this.expire = expire;
    }
}
